
<div id="contenting">
    <table>
    <?php foreach($messageList as $message): ?>

        <tr>
            <td>
                <input type="checkbox" id="chkDelete" value="<?php echo $message->getId(); ?>" onclick="deleteMessage(this, <?php echo $message->getId(); ?>);"/>
            </td>
            <td>
                <a href="<?php echo url_for('home/showMessage?id='.$message->getId()) ?>" id="msg_<?php echo $message->getId(); ?>" >
                   <div id="titlebox" >
                         <table cellpadding="0" cellspacing="0" >
                            <tr>
                                <td rowspan="2" width="50"><img src="<?php echo url_for('entityImage/index?entityid='.$message->getSenderID().'?>') ?>" height="70" alt="<?php echo $message->getSenderFullName() ?>"/></td>
                                <td id="contributor" align="left"><?php echo $message->getSenderFullName() ?></td>
                                <td id="title" align="left"><h3><?php echo $message->getSubject() ?></h3></td>
                                <td id="title" align="right"></td>
                            </tr>
                            <tr>
                                <td id="contributor" align="left" valign="top"><?php echo $message->getCreated_at() ?></td>
                                <td id="contributor" align="left" valign="top">Message Description</td>
                            </tr>

                        </table>
                    </div>
                </a>
            </td>
        </tr>
    <?php endforeach ?>
    </table>

    <a href="">
        <div id="titlebox">more ++</div>
    </a>
    <input type="hidden" value=""/>
</div>






<div id="boxes">
 <div id="readmessage_" class="window" style="width:500px; height: 400px;">
     <div  class="windowheading"><a href="#"class="close"/><<img src="/images/close.png" width="18" height="18" alt="mails"/></div>
<!--Load Data Against-->

    
     <table cellpadding="4" cellspacing="4" >
            <tr>
                <td rowspan="2" width="50px" valign="top">
                    <!--<img src="/images/amjad.jpg" width="50px"/>-->
                </td>
                <td id="txtMessageSender" align="left"></td>
                <td id="txtMessageSubject" align="left">
                    <h3 id="txtMessageSubjectH3"></h3>
                </td>
            </tr>            
            <tr>
                <td></td>
                <td id="" align="left" colspan="2">
                    <div id="dvMessageBody" style="overflow: auto; height: 150px; width: 100%"></div>
                </td>
            </tr>
            <tr>
                <td align="left" colspan="3">
                    <div id="dvMessageReply" name="dvMessageReply">
                    </div>
                </td>
            </tr>
            
            <form id="frmSendMessageReply" name="frmSendMessageReply" action="<?php echo url_for('home/sendMessageReply') ?>">
                <tr>
                    <td>
                        <input type="hidden" id="hfMsgID" name="hfMsgID" value="" onchange="messageIDChanged();" />
                    </td>
                    <td>                        
                    </td>
                    <td id="" align="left" >
                        <br><br><h3>Reply</h3><textarea cols="20" id="txtMsgReply" name="Reply" rows="5" style="width: 100%"></textarea>
                    </td>
                </tr>
                <tr>
                    <td></td>
                    <td></td>
                    <td id="" align="right" >
                        <br><a href="javascript: void(0);" class="btn" onclick="document.frmSendMessageReply.submit();return true;"> Reply </a>
                    </td>
                </tr>
        </form>
     </table>
    
 </div>
</div>